home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ May 89 / U0034-Disabled Menus-May89 < prev    next >
Encoding:
Text File  |  1989-06-26  |  1.6 KB  |  45 lines  |  [TEXT/GEOL]

  1. Item    4310042                         17-May-89        17:58
  2.  
  3. From:   MACDTS                          Macintosh Developer Technical Supt.
  4.  
  5. To:     ARGII                           Argii Design Group, M Demeyer, PRT
  6.  
  7. cc:     MACAPP.TECH$                    MACAPP Tech
  8.  
  9. Sub:    Disabled Menus
  10.  
  11. To: Dav Holle, ARGII
  12.  
  13. Dav,
  14.  
  15. It seems to me that the only time all of your menus will be disabled is if you
  16. have omitted calling INHERITED DoSetupMenus in one of your event handlers.
  17. There doesn't seem to be anything else that block setting this up.
  18.  
  19. You can try to track this down by entering the debugger...oh, wait...you say
  20. that you haven't seen this happen in the debug version. Oh, well...try this
  21. ayway. Enter the debugger, set a breakpoint for DoSetupMenus. Then trace
  22. through what happens by pressing the space bar. Or even break on TYourApplica-
  23. tion.SetupTheMenus, and trace through that. You should see something like:
  24.  
  25. TTargetView.DoSetupMenus
  26.     TView.DoSetupMenus
  27.         TEvtHandler.DoSetupMenus
  28.             TWindow.DoSetupMenus
  29.                 TView.DoSetupMenus
  30.                     TEvtHandler.DoSetupMenus
  31.                         TYourDocument.DoSetupMenus
  32.                             TDocument.DoSetupMenus
  33.                                 TEvtHandler.DoSetupMenus
  34.                                     TYourApplication.DoSetupMenus
  35.                                         TApplication.DoSetupMenus
  36.                                             TEvtHandler.DoSetupMenus
  37.  
  38. And then spiral on out.
  39.  
  40. Hope this helps,
  41.  
  42. - Keith Rollin
  43. - Apple Developer Technical Support
  44.  
  45.